home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
EnigmA Amiga Run 1997 April
/
EnigmA AMIGA RUN 17 (1997)(G.R. Edizioni)(IT)[!][issue 1997-04][EAR-CD].iso
/
EARCD
/
comm
/
tcp
/
mFinger10.lha
/
mFinger
/
Rexx
/
mFinger.AMIRX
Wrap
Text File
|
1996-11-26
|
1KB
|
58 lines
/* mFinger.AMIRX -- AmIRC finger script for interfacing with mFinger
**
** Programmed by Troels Walsted Hansen <troels@stud.cs.uit.no>.
** Some code borrowed from Finger.AMIRX by Alexander "Handtuch" Sorg
** and Troy "Doogie" Davis.
**
** This script will first see if mFinger is running, if it is it will
** be told to finger the address in question. If mFinger isn't running
** it will be launched with the address as a commandline argument.
**
** Note that since mFinger works 100% asynchronously you won't get any
** error messages or finger output back into your AmIRC window.
*/
/* change this command to suit your setup */
mFingerCmd = "SC:Troels/mFinger/mFinger"
/* don't change anything below here */
parse arg args
options results
if args = "" then
do
"echo P="d2c(27)"b«Error» Usage: FINGER nick"
exit
end
USERHOST args
NickHost = result
"echo P="d2c(27)"b«Finger» Fingering "d2c(2)Args d2c(2)"("NickHost")."
/* see if mFinger is running */
p=show('P',,)
if pos("MFINGER.", p) > 0 then
do
address(word(substr(p,pos("MFINGER.",p)),1))
FINGER NickHost
end
else
do
amircport = address()
address command
mFingerCmd || " " || NickHost
if(rc > 0) then
do
address(amircport)
"echo P="d2c(27)"b«Finger» Failed to launch mFinger with the commandline "d2c(2) || mFingerCmd || d2c(2)"."
exit 20
end
else exit
end